﻿@model PilotMVC.Models.TestResultView

@{ ViewBag.Title = "CompleteTest";
    Layout = "~/Views/Shared/_ExaminerLayout.cshtml";}

    <link href="../../Content/items1/quizTable.css" rel="stylesheet" type="text/css" />

<div style="width:900px;font:arial;font-size:18px;">
<div style="margin-top:50px;margin:auto;width:470px;">
    <h2><span style="margin:auto;color:blue;">Test has been Completed </span></h2>
</div>

<form>
    <fieldset style="background-color:#ebf4fb;">


<div  style="width:800px;height:200px;margin:auto;margin-top:70px;">

@*    @using (Html.BeginForm())
    {
        if (Model.score >= Model.passMark)
        {
            @Html.Label("PASS")
        }
        else
        {
            @Html.Label("FAIL")
        }
    }*@

    <div class="editor-label">
         <span>@Html.Label("Date: ")
            @Html.DisplayFor(modelitem => modelitem.Date.Date)
            @Html.ValidationMessageFor(model => model.Date)</span>
    </div>

    <div class="editor-label">
          <span>@Html.Label("Your Score: ")
            @Html.DisplayFor(modelitem => modelitem.score)
            @Html.ValidationMessageFor(model => model.score)</span>
    </div>


    <div class="editor-label">
         <span>@Html.Label("Incorrect Answer: ")
            @Html.DisplayFor(modelitem => modelitem.incorrectAnswer)
            @Html.ValidationMessageFor(model => model.incorrectAnswer)</span> 
    </div>


    <div class="editor-label">
         <span>@Html.Label("Correct Answer: ")
            @Html.DisplayFor(modelitem => modelitem.correctAnswer)
         </span>
    </div>


   
</div>

<div style="width:800; margin:auto;">
    <span style="margin-left:200px;">
    
         @Html.ActionLink("Log Off","LogOff", "Account")  
    
    </span>
</div>


</fieldset> 
</form>
</div>